<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.javer.util.IpAddressUtil"%>
<%@page import="com.javer.core.SensWordCache"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>骑驴网业务支撑系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="icon" href="<%=basePath%>favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="<%=basePath%>favicon.ico" type="image/x-icon"/>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
		if ('${error}' != '') {
			//alert('${error}');
		}
	</script>

  </head>
  
  <body>
  	<img src="images/network.png" style="float:right;"/>
  	<h1 style="color:#000369;">骑驴网业务支撑系统</h1>
  	<hr style="border:0px;border-top:1px dotted #000369;height:1px;"/>
  	<p>您的IP：<%= request.getRemoteAddr() %>(<%out.print(IpAddressUtil.getIpAddressByIp(request.getRemoteAddr())); %>)</p>
  	<p>骑驴网当前在线人数：${TotalOnlineCounter}</p>
  	<p>系统启动时间：${StartTime}</p>
  	<P>系统当前时间：<%
  		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:sss");
  		out.print(sdf.format(new Date()));
  		%>
  	</P>
  	<p>系统发生的错误数：${TotalErrorCount == null ? 0 : TotalErrorCount}</p>
  	<p>敏感词配置参数为：${initParam.sensLevel}</p>
  	<p>低级敏感词库共包含&nbsp;<%= SensWordCache.getLowSize() %>&nbsp;个单词</p>
  	<p>中级敏感词库共包含&nbsp;<%= SensWordCache.getMediumSize() %>&nbsp;个单词</p>
  	<p>高级敏感词库共包含&nbsp;<%= SensWordCache.getHighSize() %>&nbsp;个单词</p>
  	
  	<%-- ################################################################################# --%>
  	
    <div style="top:150px;right:160px;width:350px;height:160px;border:1px dotted blue;position:absolute;padding:20px;text-align:right;">
    	欢迎使用
    	<p style="color:red;">
   			${error}
   		</p>
    	<form action="manage/manager.jsp">
    		<p>用户名：<input type="text" name="username" style="width:200px;" value="${param.username}"></p>
    		<p>密&nbsp;&nbsp;码：<input type="password" style="width:200px;" name="password"></p>
    		<p>
    		<%@ include file="/pages/share/qq.jsp" %>
    		<input type="submit" value=" 登 录 "/></p>
    	</form>
    </div>
    <div style="right:160px;bottom:20px;text-align:right;position:absolute;">
        <p style="font-family: Helvetica, Arial, sans-serif;font-size: small;">骑驴网 &copy; 2011~ All Rights Reserved.</p>
    </div>
  </body>
</html>
